package cn.tpshion.task.task;

import cn.tpshion.task.common.MsgAction;
import cn.tpshion.task.data.MsgData;
import io.netty.channel.ChannelHandlerContext;

public abstract class MsgHandler {

    protected abstract MsgAction action();

    public Boolean support(Integer action) {
        return action().getAction().equals(action);
    }

    public abstract void handler(ChannelHandlerContext ctx, MsgData msgData);
}
